/*
*  命名约定：
 *  get开头  ->get请求
 *  add开头  ->post请求，
 *  edit开头 ->post请求
 *  del开头  ->delete请求
 *  未已上面的（get，add，edit，del）开头意味着增删查改都是用的同一个路径
* */

// 授权api
const fileApi = {
  filetree: '/api/file/tree',
  addfile: '/api/file/add',
  savefile: '/api/file/save',
  deletefile: '/api/file/delete'
};

// 图片api
const imgApi = {
  upload: '/api/img/upload',
};

// gitapi
const gitApi = {
  login: '/api/git/login',
  commit: '/api/git/commit',
  push: '/api/git/push',
};

export default {
  fileApi,
  imgApi,
  gitApi
};
